import { request } from '@/utils/request.js'

export default {
  /**
   * 获取用户列表
   * @returns
   */
  queryHome() {
    return request({
      url: '/p5wznrna/home',
      method: 'get',
    })
  },
  getUploadToken(data) { 
    return request({
      url: '/p5wznrna/createToken',
      method: 'post',
      data
    })
  },
  refreshCaptpcha(id) {
    return request({
      url: '/p5wznrna/verify?id='+id,
      method: 'get'
    })
  },
  get_google_secret() { 
    return request({
      url: '/p5wznrna/admin_google_auth',
      method: 'get'
    }) 
  },
  bind_google_secret(data) { 
    return request({
      url: '/p5wznrna/admin_google_auth',
      method: 'post',
      data
    }) 
  },

}
